package test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import service.MyWork;

public class test {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml") ;
		
		MyWork mw = (MyWork) context.getBean("mw");
		System.out.println(mw.getClass().getName());
		mw.add1("julie");
		
		/*JohnBean jb1 = (JohnBean) context.getBean("jb1");
		jb1.say();*/
	}
}